package com.atguigu.gmall.seckill;

import com.atguigu.gmall.common.config.interceptor.EnableAutoConfigHeaderInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringCloudApplication
@EnableAutoConfigHeaderInterceptor
@EnableScheduling  //开启定时任务
@MapperScan("com.atguigu.gmall.seckill.mapper")
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign.user")
public class SeckillMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeckillMainApplication.class, args);
    }
}
